import request from '@/utils/request'
// 获取通知列表
function getNoticeList(params) {
    return request.post("account/discoveryContentIsNoticelsList", {params})
}
// 逛一逛视频
function getReviewList(params) {
    return request.post("account/takeAStrollList", {params})
}
// 收藏
function collect(params) {
    return request.post(`account/isNoVideo?type=${params.type}&video_id${params.video_id}&user_id=${params.user_id}`, {
    })
}
// 检查收藏
function checkCollect(params) {
    return request.post(`account/selectIsNoVideo?type=${params.type}&video_id${params.video_id}&user_id=${params.user_id}`, {
    })
}
// 头条视频
function getHeadlineVideo(params) {
    return request.post("account/findList", {params})
}

/**
 * 发现
 */
// 根据一级分类查询二级分类
function findSecondCategory(type) {
    return request.post("account/discoveryContentList?type=" + type, {

    })
}
// 根据分类查列表
function findListByType(type) {
    return request.post("account/discoveryContentDetailsList?type=" + type, {})
}
export default {
    getNoticeList,
    getReviewList,
    collect,
    checkCollect,
    getHeadlineVideo,
    findSecondCategory,
    findListByType
}
